package com.stox.client.ui.javafx.chartingy.model.node;

import javafx.scene.Group;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;

import com.stox.client.ui.javafx.chartingy.model.plot.Data;
import com.stox.client.ui.javafx.core.util.CSS;
import com.stox.client.ui.javafx.core.util.UI;
import com.stox.shared.charting.model.Pnf.Box;
import com.stox.shared.core.model.Bar;
import com.stox.shared.core.model.Scrip;

public abstract class AbstractPnfBox extends Group {

	protected static final double padding = 0.15;

	protected final Data<Scrip, Bar> data;
	protected final Rectangle boxRectangle = new Rectangle();
	protected final Box box;

	public AbstractPnfBox(final Data<Scrip, Bar> data, final Box box) {
		UI.style(this, CSS.pnfBox);
		this.data = data;
		this.box = box;
		boxRectangle.setFill(Color.GREEN);
	}

	public Data<Scrip, Bar> getData() {
		return data;
	}

	public Rectangle getBoxRectangle() {
		return boxRectangle;
	}

	public Box getBox() {
		return box;
	}

}
